<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        var xhr = new XMLHttpRequest();
        xhr.open("GET", "/myajax?name=3", true);
        xhr.send();
        xhr.onreadystatechange = function () {
            if (xhr.readyState == 4) {
                var ret = eval("(" + xhr.responseText + ")");
                console.info(ret);
            }
        }
    </script>
</head>
<body>
<input type="text" id="my">
nihao
</body>
</html>